package org.huatek.anders.rabbitmq;

import org.huatek.anders.entity.OrderEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author anders
 * @date 2018-11-16 14:43
 **/
@Component
@Slf4j
@RabbitListener(queues = "notify.refund")
public class RefundNotifyReceive {
    @RabbitHandler
    public void receive(OrderEntity order) {
        log.info("notify.refund receive message: "+order);
    }
}
